[gd_scene load_steps=5 format=3 uid="uid://b25ho2mm4ueds"]

[ext_resource type="Script" path="res://Scripts/smoky_old.gd" id="1_6ifn8"]
[ext_resource type="ArrayMesh" uid="uid://b15kfe5xv17x6" path="res://Assets/Models/smoky.res" id="2_74fjy"]
[ext_resource type="AudioStream" uid="uid://dsjjw1rvty5hc" path="res://Assets/Sounds/smoky_shot.mp3" id="3_7v0pg"]

[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_elci8"]
points = PackedVector3Array(0.3, 0.324229, 0.399961, 0.3, 0.000548244, 0.399961, 0.3, 0.324296, -0.436962, 0.278387, 0.34597, 0.399961, 0.0569107, 0.174476, 1.5, 0.0663078, 0.164975, 1.5, 0.0663078, 0.0655683, 1.5, 0.201919, 0.000548244, 0.599843, 0.3, 0.000548244, -0.436962, 0.236805, 0.298667, -0.5, 0.278446, 0.34597, -0.438136, -0.278446, 0.34597, 0.399961, -0.0569695, 0.174476, 1.5, -0.0663665, 0.0655683, 1.5, -0.201977, 0.000548244, 0.599843, 0.236805, 0.000548244, -0.5, -0.236864, 0.298667, -0.5, 0, 0.34597, -0.452819, -0.278504, 0.34597, -0.438136, -0.3, 0.324296, -0.436962, -0.3, 0.324229, 0.399961, -0.0663665, 0.164975, 1.5, -0.3, 0.000548244, 0.399961, -0.236864, 0.000548244, -0.5, -0.3, 0.000548244, -0.436962)

[node name="Smoky" type="StaticBody3D"]
script = ExtResource("1_6ifn8")

[node name="Smoky" type="MeshInstance3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
mesh = ExtResource("2_74fjy")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
shape = SubResource("ConvexPolygonShape3D_elci8")

[node name="AimRay" type="RayCast3D" parent="."]
transform = Transform3D(4, 0, 0, 0, 4, 0, 0, 0, 4, 0, 0.118692, -1.62469)
target_position = Vector3(0, 0, -100)
collision_mask = 2
collide_with_areas = true

[node name="CooldownTimer" type="Timer" parent="."]
wait_time = 1.5
one_shot = true

[node name="SmokyShotAudio" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_7v0pg")

[connection signal="timeout" from="CooldownTimer" to="." method="_on_cooldown_timer_timeout"]
